/**
 * 
 */
package edu.hm.compiler.parser.grammar;

import java.util.Collections;
import java.util.List;

/**
 * @author Saruman
 */
public class RuleSystem
{
    private final Query        query;
    private final List< Rule > ruleList;

    public RuleSystem( Query query, List< Rule > ruleList )
    {
        this.query = query;
        this.ruleList = Collections.unmodifiableList( ruleList );
    }

    public Query getQuery()
    {
        return this.query;
    }

    public List< Rule > getRuleList()
    {
        return this.ruleList;
    }

    @Override
    public String toString()
    {
        return "RuleSystem [query=" + query + ", ruleList=" + ruleList + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    }
}
